<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Support\Facades\Validator;

class DnShopOrder extends Model
{
    use ValidatesRequests;
    //
    protected $table = 'tb_shop_order';
    protected $connection = 'mysql_dn';
    protected $primaryKey = 'order_id';
    protected $rules = [

    ];
    protected $message = [

    ];

    public $timestamps = FALSE;
    protected $fillable = [
    ];
    protected $appends = [];
//    protected $hidden = ['path'];

    public $errors;

    public function validate($data)
    {
        return true;
    }


    public function getClassNameAttribute()
    {
//        if($this->class_id) {
//            $model = NoticeClass::query()
//                ->where('id', $this->class_id)
//                ->first();
//
//            return $model->name ?? '';
//        }
//        return '';
    }








}
